export interface PositionTableRowModel {
  createdBy: string
  createdTime: string
  delFlag: 0 | 1
  id: number
  positionName: string
  positionStatus: 0 | 1
  sortIndex: number
  updatedBy: string
  updatedTime: string
}

export interface PositionModel {
  createdBy: string
  createdTime: string
  delFlag: 0 | 1
  deptIdList: number[]
  id: number
  positionName: string
  positionStatus: 0 | 1
  sortIndex: number
  updatedBy: string
  updatedTime: string
}

const api: ApiConfig = {
  list: {
    method: 'GET',
    url: '/sys/system/sysPosition/list'
  },
  listByDeptId: {
    method: 'GET',
    url: '/sys/system/sysPosition/listByDeptId'
  },
  update: {
    method: 'POST',
    url: '/sys/system/sysPosition/update'
  },
  save: {
    method: 'POST',
    url: '/sys/system/sysPosition/save'
  },
  delete: {
    method: 'POST',
    url: '/sys/system/sysPosition/delete'
  },
  info: {
    method: 'GET',
    url: '/sys/system/sysPosition/info/:id'
  }
}

export default api
